package com.dd.cloud.user.service.doctor;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.cloud.user.entity.doctor.DoctorSign;
import com.dd.cloud.user.req.doctor.DoctorWebSocketChatReq;

import java.io.IOException;

/**
 * @author Lx
 * @version 1.0
 */
public interface IDoctorSignService extends IService<DoctorSign> {
    /**
     * 上传医生签名
     *
     * @param signBase
     */
    void uploadDoctorSign(String signBase);

    /**
     * 上传医生签名 url地址
     *
     * @param signUrl
     */
    void uploadDoctorSignUrl(String signUrl);

    /**
     * 查询医生签名
     *
     * @param docId
     * @return
     */
    DoctorSign queryDoctorSign(Integer docId);

    /**
     * 上传医生签名
     * @param doctorId
     * @param signBase
     */
    void uploadDoctorSignH5(String signBase, Integer doctorId);

    /**
     * 保存医生签名
     * @param doctorId
     * @param signBase
     */
    void saveDoctorSignH5(String signBase, Integer doctorId);

    /**
     * 发送聊天消息
     * @param req
     */
    void sendWebsocketChat(DoctorWebSocketChatReq req);

    void testWebsocket(String content,String sid) throws IOException;
}
